package com.info.zhiduoduo.repository.entity.notice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("zdd_notice")
public class Notice extends Model<Notice> {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	private String title;
	private String content;
	/**
	 * 链接url
	 */
	private String url;
	/**
	 * 1:文字公告 2：链接公告
	 */
	@TableField("notice_type")
	private Integer noticeType;
	/**
	 * 类型： 1：发给全部 2：发给创客 3：发给企业 4：发给合伙人  -1:测试
	 */
	private Integer type;
	private Integer managerid;
	private Date createtime;

	/**
	 * 省份id
	 */
	private Integer provinceid;

	/**
	 * 城市id
	 */
	private Integer cityid;

	/**
	 * 创客开户地 1天津，2共青城，3芜湖，4.普陀山，5徐州
	 */
	private Integer openingLocation;

	@ApiModelProperty("指定id")
	@TableField("specify_id")
	private Integer specifyId;

	@Override
	protected Serializable pkVal() {
		return id;
	}
}
